Skip to content

Conversation

@unixorn
Copy link
Owner

@unixorn unixorn commented Dec 27, 2018

Description

Add @nilium's git-gitlab-mr and git-wordiness scripts

Type of changes

  • A helper script
  • A link to an external resource like a blog post or video
  • Text cleanups/updates

Checklist:

  • All new and existing tests pass.
  • Any scripts added use #!/usr/bin/env interpreter instead of potentially platform-specific direct paths (#!/bin/sh is an ok exception)\
  • Scripts are marked executable
  • I have added a credit line to README.md for the script
  • If there was no author credit in a script added in this PR, I have added one.
  • I have confirmed that the link(s) in my PR are valid.
  • I have read the CONTRIBUTING document.

License Acceptance

  • This repository is Apache version 2.0 licensed (some scripts may have alternate licensing inline in their code) and by making this PR, I am contributing my changes to the repository under the terms of the Apache 2 license.

Noel posted a link to this in the Hangops slack.
err 'Required program missing: jq'
fi

ref="$(git rev-parse --abbrev-ref --symbolic-full-name @{u})"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This { is literal. Check expression (missing ;/\n?) or quote it.

err 'Required program missing: jq'
fi

ref="$(git rev-parse --abbrev-ref --symbolic-full-name @{u})"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This } is literal. Check expression (missing ;/\n?) or quote it.

;;
esac

: "${mrurl=${scheme}://${domain}${path%.git}${suffix}}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mrurl is referenced but not assigned.

Copy link
Collaborator

@nilium nilium Dec 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bug. Should be : ${ident:=...}. I'll fix the gist. (The fix won't silence this warning, by the way -- it's just I don't care about the difference between null / empty here.)

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit bc222e2 and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Bug Risk 2

View more on Code Climate.

@unixorn unixorn merged commit e20fcc2 into master Dec 27, 2018
@unixorn unixorn deleted the add-gitlab-mr branch December 27, 2018 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants